using System.Xml.Linq;

namespace Ornament.NHibernates.Configurations
{
    public sealed class SessionFactory : PropertyContainer
    {
        internal SessionFactory(XElement sesionFactoryNode) : base(sesionFactoryNode)
        {
            DriverInfo = new DriverInfo(sesionFactoryNode);
            Runtime = new Runtime(sesionFactoryNode);
            Mappings = new MappingCollection(sesionFactoryNode);
        }

        /// <summary>
        /// 
        /// </summary>
        public MappingCollection Mappings { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        public DriverInfo DriverInfo { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        public Runtime Runtime { get; private set; }
    }
}